package org.infodavid.common.notifier.impl;

import org.infodavid.common.notifier.IAntiSpamOptions;

/**
 * The Class DefaultAntiSpamOptions.
 */
public class DefaultAntiSpamOptions implements IAntiSpamOptions {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 9024637735219016568L;

	/** The suspend duration in minutes. */
	private long suspendDurationInMin = 0;

	/** The threshold level. */
	private int thresholdLevel = 0;

	/**
	 * {@inheritDoc}
	 * @see org.infodavid.common.notifier.IAntiSpamOptions#getSuspendDurationInMin()
	 */
	public long getSuspendDurationInMin() {
		return suspendDurationInMin;
	}

	/**
	 *{@inheritDoc}
	 * @see org.infodavid.common.notifier.IAntiSpamOptions#getThresholdLevel()
	 */
	public int getThresholdLevel() {
		return thresholdLevel;
	}

	/**
	 * {@inheritDoc}
	 * @see org.infodavid.common.notifier.IAntiSpamOptions#setSuspendDurationInMin(long)
	 */
	public void setSuspendDurationInMin(final long value) {
		suspendDurationInMin = value;
	}

	/**
	 * {@inheritDoc}
	 * @see org.infodavid.common.notifier.IAntiSpamOptions#setThresoldLevel(int)
	 */
	public void setThresholdLevel(final int value) {
		thresholdLevel = value;
	}

	/**
	 * See super class or interface.
	 * (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		final StringBuilder builder = new StringBuilder();

		builder.append(super.toString());
		builder.append("DefaultAntiSpamOptions [suspendDurationInMin=");
		builder.append(suspendDurationInMin);
		builder.append(", thresholdLevel=");
		builder.append(thresholdLevel);
		builder.append("]");

		return builder.toString();
	}
}
